home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
byt87ibm.arc
/
DRUMMOND.ARC
/
T8255.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1987-09-25
|
640b
|
25 lines
program test_8255;
const
PORT_A = $388;
PORT_B = $389;
PORT_C = $38A;
CONTROL_LOC = $38B;
var
i,j,k: integer;
begin
port[CONTROL_LOC] := $84;
repeat
begin
for j := 0 to maxint do
begin
port[PORT_A] := lo(j);
port[PORT_B] := hi(j);
i := port[PORT_A];
k := port[PORT_B];
if (hi(j) <> k) or (lo(j) <> i) then writeln('help'^G);
end;
end;
writeln(k:6,i:6);
until false;
end.